package top.hmtools.ckfinder.beans.commons;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

@XmlRootElement(name = "ResourceType")
public class ResourceTypeBean {

	@XmlAttribute(name="name")
	private String name;

	@XmlAttribute(name="url")
	private String url;

	@XmlAttribute(name="allowedExtensions")
	private String allowedExtensions;

	@XmlAttribute(name="deniedExtensions")
	private String deniedExtensions;

	@XmlAttribute(name="defaultView")
	private String defaultView;

	@XmlAttribute(name="hash")
	private String hash;

	@XmlAttribute(name="hasChildren")
	private boolean hasChildren;

	@XmlAttribute(name="acl")
	private int acl;

	@XmlTransient
	public String getName() {
		return name;
	}

	public ResourceTypeBean setName(String name) {
		this.name = name;
		return this;
	}

	@XmlTransient
	public String getUrl() {
		return url;
	}

	public ResourceTypeBean setUrl(String url) {
		this.url = url;
		return this;
	}

	@XmlTransient
	public String getAllowedExtensions() {
		return allowedExtensions;
	}

	public ResourceTypeBean setAllowedExtensions(String allowedExtensions) {
		this.allowedExtensions = allowedExtensions;
		return this;
	}

	@XmlTransient
	public String getDeniedExtensions() {
		return deniedExtensions;
	}

	public ResourceTypeBean setDeniedExtensions(String deniedExtensions) {
		this.deniedExtensions = deniedExtensions;
		return this;
	}

	@XmlTransient
	public String getDefaultView() {
		return defaultView;
	}

	public ResourceTypeBean setDefaultView(String defaultView) {
		this.defaultView = defaultView;
		return this;
	}

	@XmlTransient
	public String getHash() {
		return hash;
	}

	public ResourceTypeBean setHash(String hash) {
		this.hash = hash;
		return this;
	}

	@XmlTransient
	public boolean getHasChildren() {
		return hasChildren;
	}

	public ResourceTypeBean setHasChildren(boolean hasChildren) {
		this.hasChildren = hasChildren;
		return this;
	}

	@XmlTransient
	public int getAcl() {
		return acl;
	}

	public ResourceTypeBean setAcl(int acl) {
		this.acl = acl;
		return this;
	}
	
	
}
